package com.sinaapp.zygl.dao.impl;

import java.util.ArrayList;
import java.util.List;

import com.sinaapp.zygl.bean.UserAndCustomer;
import com.sinaapp.zygl.dao.BusinessDao;

public class Btest {

	public static void main(String[] args) {
		// Business b = new Business();
		UserAndCustomer b = new UserAndCustomer();
		BusinessDao dao = new BusinessDaoImpl();
		// b.setB_id(6);
		// b.setUid("20150001");
		// b.setCid("10000001");
		// b.setB_business("咳咳咳ke");
		// b.setB_evaluate("好");
		//
		// b.setName("ad");
		// b.setCname("王");
		// dao.add(b);
		// dao.delete(5);
		// dao.update(b);
		// System.out.println(dao.queryBusinessTotal(b));
		// List<Business> bs = new ArrayList<Business>();
		// bs = dao.getBusinesss(1, 10, "b_id", "asc", b);
		// for (Business business : bs) {
		// System.out.println(business.getB_business());
		// }
		// System.out.println(dao.queryUserAndCustomerTotal(b));
		//
		List<UserAndCustomer> bs2 = new ArrayList<UserAndCustomer>();
		bs2 = dao.getUserAndCustomer(1, 10, "uid", "asc", b);
		for (UserAndCustomer business : bs2) {
			System.out.println(business.getB_business());
		}
	}

}
